﻿using System;

namespace Evaluate_Arithmetic_Expression
{
    internal class ListNode<T>
    {
        public T Data { get; private set; }
        public ListNode<T> Next { get; set; }

        public ListNode(T dataVale, ListNode<T> nextNode)
        {
            Data = dataVale;
            Next = nextNode;
        }

        public ListNode(T dataValue)
            : this(dataValue, null)
        {
        }
    }
}